package mytest.ssw.www.mylibrary;

/**
 * Created by 73409 on 2015/11/9.
 */
public class StudentInfo{

  //  private static final long serialVersionUID = -7620435178023928252L;  //序列化

    private String id;
    private String num;
    private String name;
    private String departmentNum;
    private String gender;
    private String dormitory;
    private String photoPath;
    private String phoneNum;
    private String nation;
    private String politicalStatus;
    private String birthday;
    private String birthplace;
    private String parentName;
    private String parentPhone;
    private String homeAddress;
    private String postCode;
    private String valid;
    private String qq;
    private String imeinum;

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getValid() {
        return valid;
    }

    public void setValid(String valid) {
        this.valid = valid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDepartmentNum() {
        return departmentNum;
    }

    public void setDepartmentNum(String departmentNum) {
        this.departmentNum = departmentNum;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getDormitory() {
        return dormitory;
    }

    public void setDormitory(String dormitory) {
        this.dormitory = dormitory;
    }

    public String getPhotoPath() {
        return photoPath;
    }

    public void setPhotoPath(String photoPath) {
        this.photoPath = photoPath;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getPoliticalStatus() {
        return politicalStatus;
    }

    public void setPoliticalStatus(String politicalStatus) {
        this.politicalStatus = politicalStatus;
    }

    public String getBirthplace() {
        return birthplace;
    }

    public void setBirthplace(String birthplace) {
        this.birthplace = birthplace;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getParentPhone() {
        return parentPhone;
    }

    public void setParentPhone(String parentPhone) {
        this.parentPhone = parentPhone;
    }

    public String getHomeAddress() {
        return homeAddress;
    }

    public void setHomeAddress(String homeAddress) {
        this.homeAddress = homeAddress;
    }

    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

      public String getImeinum() {
        return imeinum;
    }

    public void setImeinum(String imeinum) {
        this.imeinum = imeinum;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public StudentInfo stuToStuInfo(Student stu){
        StudentInfo stuInfo=new StudentInfo();
        stuInfo.setId(stu.getId());
        stuInfo.setNum(stu.getNum());
        stuInfo.setName(stu.getName());
        stuInfo.setGender(stu.getGender());
        stuInfo.setBirthday(stu.getBirthday());
        stuInfo.setBirthplace(stu.getBirthplace());
        stuInfo.setPostCode(stu.getPostCode());
        stuInfo.setDepartmentNum(stu.getDepartmentNum());
        stuInfo.setDormitory(stu.getDormitory());
        stuInfo.setPostCode(stu.getPhotoPath());
        stuInfo.setPhoneNum(stu.getPhoneNum());
        stuInfo.setParentName(stu.getParentName());
        stuInfo.setParentPhone(stu.getParentPhone());
        stuInfo.setPoliticalStatus(stu.getPoliticalStatus());
        stuInfo.setQq(stu.getQq());
        stuInfo.setValid(stu.getValid());
        stuInfo.setImeinum(stu.getImeinum());
        stuInfo.setNation(stu.getNation());
        stuInfo.setHomeAddress(stu.getHomeAddress());
        return stuInfo;
    }



}
